package guoanmaker.operator.business.model;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnore;

import guoanmaker.operator.helper.common.abstractobj.IdEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 
* @ClassName: OperatorContractType 
* @Description: TODO(合同类型实体类) 
* @author (ZhangXinYu)  
* @date 2017年12月15日 下午5:09:27 
* @version V1.0
 */

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "t_operator_contract_type")
public class OperatorContractType extends IdEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	String name;	//类型名称
	@Column(name="use_count")
	Integer useCount;	//类型合同使用总数
	@Column(name="create_date")
	Date createDate;	//类型添加日期
	
	@JsonIgnore
	@OneToMany(mappedBy="contractType",fetch=FetchType.LAZY,cascade={CascadeType.ALL})
	Set<OperatorContract> contracts;
	
	private String guide;

	
	
	
	
	
}
